function k_ = set(k_, varargin)%set method for class dXkbHID: specify property values and recompute dependencies%   k_ = set(k_, varargin)%%   All DotsX classes have set methods which allow properties for one or%   more instances to be specified, and dependent values recomputed.%%   Updated class instances are always returned.%%----------Special comments-----------------------------------------------%-%%-% assigns properties to 'dXkbHID' object%-% and returns the updated object.%----------Special comments-----------------------------------------------%%   See also set dXkbHID% Copyright 2005 by Joshua I. Gold%   University of Pennsylvania% set the fields, one at a time..  no error checking herefor ii = 1:2:nargin-1    k_.(varargin{ii}) = varargin{ii+1};end% if new mappings come in through set, work them outif ~isempty(k_.mappings)    k_ = putMap(k_, k_.mappings);    k_.mappings = [];end